Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry select() on dynamic menu pipe if interrupted by SIGCHLD #577

Merged
merged 1 commit into from
Jun 27, 2022
Merged

Retry select() on dynamic menu pipe if interrupted by SIGCHLD #577

merged 1 commit into from
Jun 27, 2022

Conversation

dimkr
Copy link
Contributor

@dimkr dimkr commented Jun 27, 2022

When running jwm -reload (with JWM master), read() may fail with EAGAIN because select() was unblocked by a SIGCHLD and the file descriptor is still not ready for reading. This leaves dynamic menus in some broken state: empty or truncated.

dimkr added a commit to dimkr/woof-CE that referenced this pull request Jun 27, 2022
dimkr added a commit to vanilla-dpup/woof-CE that referenced this pull request Jun 27, 2022
@joewing
Copy link
Owner

joewing commented Jun 27, 2022

Good catch. Thanks!

@joewing joewing merged commit 7b647f0 into joewing:master Jun 27, 2022
@dimkr dimkr deleted the bugfix/truncated-menu branch June 27, 2022 12:29
@dimkr dimkr mentioned this pull request Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants